export const copyText = (str: string) => {

  navigator.clipboard.writeText(str).then(function () {
    ElMessage({
      type: "success",
      message: "复制成功"
    })
  }, function (err) {
    ElMessage({
      type: "error",
      message: "复制失败，请重试"
    })
  });

}
